<template>
  <div>
    <el-dialog title="首营资料" :visible.sync="dialogVisible" width="500px">
      <el-table :data="list" height="250" border style="width: 100%">
        <el-table-column prop="userName" label="文件路径">
          <template slot-scope="scope">
            <span>{{scope.row.userName}}</span>
          </template>
        </el-table-column>

        <el-table-column prop="longName" label="供应商">
          <template slot-scope="scope">
            <span>{{scope.row.longName}}</span>
          </template>
        </el-table-column>

        <el-table-column prop="rolesName" label="商品名称">
          <template slot-scope="scope">
            <span>{{scope.row.rolesName}}</span>
          </template>
        </el-table-column>

       <el-table-column align="center" label="操作">
        <el-button type="text">文件上传</el-button>
      </el-table-column>
      </el-table>

      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="submit()">保 存</el-button>
      </span>

    </el-dialog>
  </div>
</template>

<script>
import apigoodslibrary from "@/api/goodsManage/goodslibrary"
export default {
  name: "dialogLibraryData",
  data() {
    return {
      dialogVisible: false,
      list: [],
    };
  },

  methods: {
    open(row) {
      this.getList()
      this.dialogVisible = true 
    },
    getList() {
      let data = apigoodslibrary.firstOperateList();
      this.list = data.list;
    }
  }
};
</script>

<style scoped>
</style>